import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    activePath:sessionStorage.getItem('activePath')
  },
  mutations: {
    activePath(state){
      let activePath = window.sessionStorage.getItem("activePath");
      if (activePath) {
        this.state.activePath=activePath
      } else {
      this.state.activePath='/home';
      }
     

    }
  },
  actions: {
  },
  modules: {
  }
})
